
import {
  requestAjax
} from './config.js'

// 添加地址
export const address_add = (data) => {
  return requestAjax('/api/v1/address/add', data, 'POST')
}
// 地址列表
export const address_list = (data) => {
  return requestAjax('/api/v1/address/myList', data, 'GET')
}
// 商品详情
export const mall_details = (data) => {
  return requestAjax(`/api/v1/mall/get/${data.id}`, {}, 'GET')
}

// 商家banner图片列表
export const banner_list = (data) => {
  const orgId = uni.getStorageSync("orgId");
  data.orgId = orgId;
  return requestAjax(`/api/v1/banner/user/pageList`, data, 'POST')
}

